DIR=$( dirname "$(readlink -f  ${BASH_SOURCE[0]})" )
PARENTPATH=$(dirname ${DIR})
sh ${PARENTPATH}/valid_docker_images.sh mysql
if [ $? != "1" ]; then
	#拉取redis
	sudo docker pull  redis:3.2
fi
if [ ! -d "/opt/soft/docker/redis" ];then
sudo mkdir -p /opt/soft/docker/redis
fi
sudo docker run -p 6379:6379 -v /opt/soft/docker/redis/data:/data --name=myredis --restart=always -d redis:3.2 redis-server --appendonly yes --requirepass Qq025025
